<?php
if($this->pageCount){
	echo '<div align="center">';
	if(isset($this->previous)){
		echo '<a href="'.$this->url(array('page'=>$this->previous)).'">Previous</a> | ';
	}
	
	foreach($this->pagesInRange as $page){
		if($page != $this->current){
			echo '<a href="'.$this->url(array('page'=>$page)).'">'.$page.'</a> | ';
		}else{
			echo $page.' | ';
		}
	}
	
	if(isset($this->next)){
		echo '<a href="'.$this->url(array('page'=>$this->next)).'">Next</a>';
	}
	
	echo '</div>';
}